import net.myonlycdw.bean.User;
import net.myonlycdw.controller.Controllers;
import net.myonlycdw.service.UserAdd;
import net.myonlycdw.service.Userinsert;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by Chen-D.W on 2017/6/10.
 */
public class Test {
    public static void main(String[] args) {
        ApplicationContext context =new ClassPathXmlApplicationContext("./net/myonlycdw/application/application-context.xml");
       Controllers controllers=context.getBean(Controllers.class);
        UserAdd userAdd=controllers.getUserAdd();
        Userinsert userinsert=controllers.getUserinsert();
        userAdd.say("厉l;害");
//        userAdd.sing("弱耦合");
//        userinsert.hah();
//        userinsert.hehe();
    }
}
